body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f7f7f7;
  width: 320px;
  min-height: 100vh;
}
#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}
header {
  background: #1976d2;
  color: #fff;
  padding: 16px;
  text-align: center;
}
#search {
  width: 90%;
  margin: 12px auto 0 auto;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 16px;
}
#bookmark-tree {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}
.bookmark-folder {
  font-weight: bold;
  margin-top: 10px;
}
.bookmark-item {
  margin-left: 16px;
  padding: 4px 0;
  display: flex;
  align-items: center;
}
.bookmark-title {
  flex: 1;
  cursor: pointer;
}
.bookmark-tags {
  margin-left: 8px;
  color: #888;
  font-size: 12px;
}
.selected {
  background: #e3f2fd;
}
#bookmark-actions {
  padding: 8px;
  border-top: 1px solid #eee;
  background: #fff;
}
.tag {
  display: inline-block;
  background: #e0e0e0;
  color: #1976d2;
  border-radius: 3px;
  padding: 2px 6px;
  margin: 0 2px;
  font-size: 12px;
}
.tag-btn {
  cursor: pointer;
  background: #fffbe7;
  border: 1px solid #ffe082;
  margin-right: 4px;
  transition: background 0.2s;
}
.tag-btn:hover {
  background: #ffe082;
}
.edit-tag-btn {
  margin-left: 8px;
  font-size: 12px;
  padding: 2px 6px;
  border: 1px solid #1976d2;
  background: #fff;
  color: #1976d2;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
}
.edit-tag-btn:hover {
  background: #e3f2fd;
}
#tag-filter-bar {
  margin-top: 8px;
  margin-bottom: 4px;
  text-align: left;
  padding-left: 8px;
} 